/*
 *  cocoa/windowImp.h
 *  mini
 *
 *  Created by jin on 1/1/11.
 *  Copyright 2011 cs. All rights reserved.
 *
 */

#ifndef INCLUDED_COCOA_WINDOW_IMP_H
#define INCLUDED_COCOA_WINDOW_IMP_H

#include <windowImpBase.h>

#ifdef __OBJC__
@class CocoaWindow;
@class CocoaView;
#else
class CocoaWindow;
class CocoaView;
#endif

class Graphic2D;

class CocoaWindowImp : public WindowImpBase
{
public:
    CocoaWindowImp(Window* owner_);
    virtual ~CocoaWindowImp();

    virtual void* GetHandle();
    virtual void Show(bool show);

    void OnPaint(Graphic2D& gc);
protected:

    CocoaWindow* pImp;
    CocoaView* pView;
};
#endif //INCLUDED_WINDOW_H
